
#include "BlackboardClient/BlackboardClientUtils.h"

#include <iostream>


using namespace std;
using namespace BlackboardClient;
int main(int argc, char* argv[])
{

	string x,y,z,total;
	
	cout << "x?";
	getline(cin, x);
	cout << "y?";
	getline(cin, y);
	cout << "z?";
	getline(cin, z);

	total = "GRIPPER 1" ;


	PostItBox * pp  = new PostItBox();
		pp->set_iswrite(true);
		pp->set_zone("BB3");
		PostIt * p = pp->add_postits();
		p->set_payload(total);
		p->set_owner("equiplet1");
		
	   

	BlackboardClientUtils * ttc = new BlackboardClientUtils();
	ttc->writeToBlackboard(pp);

	/*sleep(1);

	PostItBox * pib = new PostItBox();
	pib->set_iswrite(false);
	pib->set_readowner("B100");
	pib->set_zone("BB3");
	PostItBox_Filter * f = pib->mutable_filter();
	f->set_filtername("PostItFilter");

	pib = ttc->readFromBlackboard(pib);
	cout << pib->postits(0).payload();

  */

	return 0;

}
